import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state:{
    counter:999
  },
  mutations:{
    add(state){
      state.counter++
    }
  }

})

export default store